#include <stdio.h>
#include <stdlib.h>
#include <windows.h>

int ConsoleDCMain(int argc,char *argv[])
{
 HWND hwnd;
 HDC hdc;
 hwnd = GetConsoleWindow();
 hdc = GetDC(hwnd);
 system("color 2a");
 MoveToEx(hdc,20,20,NULL);
 LineTo(hdc,200,300);
 ReleaseDC(hwnd,hdc);
 return 0;
} 
